package com.cgwx.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Data
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("fs_transmit_detail")
@ApiModel(value="FsTransmitDetail对象", description="")
public class FsTransmitDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "关联任务id")
    private String taskId;

    @ApiModelProperty(value = "原归档路径")
    private String path;

    @ApiModelProperty(value = "父文件夹id")
    private String parentId;

    @ApiModelProperty(value = "文件状态")
    private String status;

    @ApiModelProperty(value = "文件拥有者工号")
    private String ownerAccount;

    @ApiModelProperty(value = "文件拥有者姓名")
    private String ownerName;

    @ApiModelProperty(value = "传输完成时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime completeTime;

    @ApiModelProperty(value = "文件类型")
    private String fileType;

    @ApiModelProperty(value = "文件大小")
    private String fileSize;

    @ApiModelProperty(value = "文件名称")
    private String fileName;

    @ApiModelProperty(value = "实体文件id")
    private String entityId;

    @ApiModelProperty(value = "对应实体文件的唯一id")
    private String keyId;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime gmtCreated;

    @ApiModelProperty(value = "修改时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private LocalDateTime gmtModified;

    @Override
    public String toString() {
        return "FsTransmitDetail{" +
                "id='" + id + '\'' +
                ", taskId='" + taskId + '\'' +
                ", path='" + path + '\'' +
                ", parentId='" + parentId + '\'' +
                ", status='" + status + '\'' +
                ", ownerAccount='" + ownerAccount + '\'' +
                ", ownerName='" + ownerName + '\'' +
                ", completeTime=" + completeTime +
                ", fileType='" + fileType + '\'' +
                ", fileSize='" + fileSize + '\'' +
                ", fileName='" + fileName + '\'' +
                ", entityId='" + entityId + '\'' +
                ", keyId='" + keyId + '\'' +
                ", gmtCreated=" + gmtCreated +
                ", gmtModified=" + gmtModified +
                '}';
    }
}
